<template>
  <el-dialog v-model="dialogVisible" width="1000">
    <div class="downHeader">
      <div class="downName">下载学生完整信息表</div>
      <el-icon size="24" style="cursor: pointer" @click="closeChange">
        <Close />
      </el-icon>
    </div>
    <el-divider />
    <span style="font-size: 16px; font-weight: 400"
      >请点击下载学生完整信息表。
      (注：如遇浏览器拦截无法下载，请选择允许下载；如点击按钮无法直接下载，请在按钮上右键选择链接另存为。</span
    >
    <el-divider />
    <template #footer>
      <div class="dialog-footer">
        <el-button type="primary" @click="dialogVisible = false">
          下载报告
        </el-button>
        <el-button @click="dialogVisible = false"> 下载excel模版 </el-button>
        <el-button @click="dialogVisible = false"> 下载PDF模版 </el-button>
      </div>
    </template>
  </el-dialog>
</template>
<script setup>
const dialogVisible = ref(false);

function openChang() {
  dialogVisible.value = true;
}
function closeChange() {
  dialogVisible.value = false;
}

// 暴露方法
defineExpose({
  openChang,
});
</script>
<style lang="scss" scoped>
.dialog-footer {
  margin-top: -40px;
}
.downHeader {
  display: flex;
  justify-content: space-between;

  .downName {
    font-size: 18px;
    //font-family: PingFang SC-Medium,PingFang SC;
    font-weight: 600;
    color: #1d2129;
    line-height: 27px;
  }
}
</style>
